package com.mybatis.entity;

public class Blog {

	private int id;
	private String name;
	private String infomation;
	private String image;
	private BlogUser blogUser;
	
	

	public Blog() {
		super();
	}

	public Blog(int id) {
		super();
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}


	/**
	 * @return the infomation
	 */
	public String getInfomation() {
		return infomation;
	}

	/**
	 * @param infomation the infomation to set
	 */
	public void setInfomation(String infomation) {
		this.infomation = infomation;
	}

	/**
	 * @return the blogUser
	 */
	public BlogUser getBlogUser() {
		return blogUser;
	}

	/**
	 * @param blogUser the blogUser to set
	 */
	public void setBlogUser(BlogUser blogUser) {
		this.blogUser = blogUser;
	}

	/**
	 * @return the image
	 */
	public String getImage() {
		return image;
	}

	/**
	 * @param image the image to set
	 */
	public void setImage(String image) {
		this.image = image;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Blog [id=" + id + ", name=" + name + ", infomation=" + infomation + ", image=" + image + ", blogUser="
			+ blogUser + "]";
	}


}
